package com.itheima.Controller;

import com.itheima.Service.ReportService;
import com.itheima.entity.Gender;
import com.itheima.entity.JobSum;
import com.itheima.entity.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class ReportController {
    @Autowired
    private ReportService reportService;
    //统计员工性别信息
    @GetMapping("/report/empGenderData")
    public Result selectGender(){
        //调用Service层
      List<Gender> list= reportService.selectGender();
        return Result.success(list);
    }
    /*//员工职位人数统计
    @GetMapping("/report/empJobData")
    public Result selectJobSum(){
        //调用Service层
      List <JobSum> list = reportService.selectJobSum();
        return Result.success(list);
    }*/

}
